package com.biz.primus.ms.auth.dao.repository;

import com.biz.primus.base.enums.CommonStatus;
import com.biz.primus.ms.auth.dao.po.MenuGroup;
import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface MenuGroupRepository extends CommonJpaRepository<MenuGroup, Long>, MenuGroupDao, JpaSpecificationExecutor<MenuGroup> {

    List<MenuGroup> findByStatusOrderByOrderIndexAscNameAsc(CommonStatus status);

    List<MenuGroup> findAllByOrderByOrderIndexAsc();
}

